//-----------------------------------------------------------------------
// <copyright file="a_Reviews_CartService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_Reviews_CartService
    {
        #region a_Reviews_Cart

        public static void Createa_Reviews_Cart(a_Reviews_Cart a_Reviews_Cart)
        {            
            try
            {
                a_Reviews_CartDAO a_Reviews_CartDAO = new a_Reviews_CartDAO();
                a_Reviews_CartDAO.Createa_Reviews_Cart(a_Reviews_Cart);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Reviews_Cart(a_Reviews_Cart a_Reviews_Cart)
        {            
            try
            {
                a_Reviews_CartDAO a_Reviews_CartDAO = new a_Reviews_CartDAO();
                a_Reviews_CartDAO.Updatea_Reviews_Cart(a_Reviews_Cart);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_Reviews_Cart(int rid)
        {            
            try
            {
                a_Reviews_CartDAO a_Reviews_CartDAO = new a_Reviews_CartDAO();
                a_Reviews_CartDAO.Deletea_Reviews_Cart(rid);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Reviews_Cart Geta_Reviews_Cart(int rid)
        {            
            try
            {
                a_Reviews_CartDAO a_Reviews_CartDAO = new a_Reviews_CartDAO();
                return a_Reviews_CartDAO.Geta_Reviews_Cart(rid);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_Reviews_CartCollection Geta_Reviews_CartList(a_Reviews_CartColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_Reviews_CartDAO a_Reviews_CartDAO = new a_Reviews_CartDAO();
                return a_Reviews_CartDAO.Geta_Reviews_CartList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_Reviews_CartCollection Geta_Reviews_CartList(a_Reviews_CartColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_Reviews_CartDAO a_Reviews_CartDAO = new a_Reviews_CartDAO();
                return a_Reviews_CartDAO.Geta_Reviews_CartList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}